public class TestUSB {
    public static void main(String[] args) {

        Computer compouter = new Computer();
        compouter.powerOn();

//        使用鼠标设备
        compouter.useDevice(new Mouse());
//        使用键盘设备
        compouter.useDevice(new KeyBoard());

        compouter.powerOff();
    }
}
